package com.midea.ai.air.ui.more.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RelativeLayout;

import com.midea.ai.air.R;
import com.midea.ai.air.common.BaseFragment;
import com.midea.ai.air.common.ConsVal;
import com.midea.ai.air.ui.more.MorePersonAddChangeActivity;

/**
 * Created by ouyangdi on 2016/4/12.
 * 个人资料->地址Fragment
 */
public class MorePersonAddFragment extends BaseFragment {
    private RelativeLayout mLayoutNew;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_more_person_add, container, false);
        initView(view);
        return view;
    }

    private void initView(View view) {
        mLayoutNew = (RelativeLayout)view.findViewById(R.id.layout_new_add);
        mLayoutNew.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), MorePersonAddChangeActivity.class);
                intent.putExtra(ConsVal.KEY_TITLE,getString(R.string.air_more_person_add_change));
                getActivity().startActivity(intent);
            }
        });
    }
}
